package controller;

import entity.LinBoEntity;
import service.LinBoservice;

import javax.annotation.Resource;
import java.util.List;

//、
public class LinBoController {
    List<LinBoEntity> list = null;
    String name=null;
    @Resource
    LinBoservice LinBoservice;

    //@Resource @Autowired 作用相同 去spring容器中到bean实例
    //@Service @Component 向spring 容器中放入bean（类的对象）实例a

    public String cx(){
        list =LinBoservice.cx(name);
        return "cx";
    }



    public List<LinBoEntity> getList() {
        return list;
    }

    public void setList(List<LinBoEntity> list) {
        this.list = list;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
